import React, { useEffect } from "react";
import { deptSelectTree, getUserList, login } from "../api/home";
export default function PostLogin() {
  useEffect(() => {
    async function getLogin() {
      // const res = await login({
      //   username: "admin",
      //   password: "123456",
      //   verifyCode: 1234,
      // });
      // const res = await deptSelectTree();
      const res = await getUserList({ pageNum: 1, pageSize: 20 });
      console.log(res.data.total);
    }
    getLogin();
  }, []);
  return <div>PostLogin</div>;
}
